//
//  HomeScrollView.m
//  JewelryStore
//
//  Created by apple on 2016/10/28.
//  Copyright © 2016年 com. All rights reserved.
//

#import "HomeScrollView.h"

@implementation HomeScrollView
- (instancetype)initWithFrame:(CGRect)frame imageURLStringsGroup:(NSArray *)imageURL delegate:(id<SDCycleScrollViewDelegate>)delegate isAutoScroll:(BOOL)scroll
{
    self = [super initWithFrame:frame];
    if (self) {
        SDCycleScrollView *scrollView = [SDCycleScrollView cycleScrollViewWithFrame:frame delegate:delegate placeholderImage:KImageNamed(@"placeholder")];
        scrollView.currentPageDotImage = KImageNamed(@"page_selected");
        scrollView.pageDotImage = KImageNamed(@"page_normal");
        scrollView.imageURLStringsGroup = imageURL;
        scrollView.autoScrollTimeInterval = 4;
        scrollView.autoScroll = scroll;
        [self addSubview:scrollView];
    }
    return self;
}
@end
